Repository navigation
projects: gcc: check that a new test can fail without the fix - #983
Merged
Merged
Conversation
Sashiko reviewCommit 1/1 —
|
review-core tells the reviewer to ignore testsuite files. That suits a test's code, which is meant to be odd, but the reviewer then skips the DejaGnu directives too, and a directive on the wrong line or a missing target selector lets a test pass without the fix or fail on targets it should run on Add maintainer notes for the testsuite/ directories of gcc and the runtime libraries: directive placement, c-c++-common targets, type-size selectors, language levels, the PR comment and the ChangeLog block. review-core still ignores a test's code, and now checks those parts of the test Signed-off-by: Hugo Sales <hugo@hsal.es>
someonewithpc
force-pushed
the
gcc-testsuite-notes
branch
from
December 3, 2026 12:11
c498e65 to
055fb3d
Compare
Contributor
Author
|
Fixed in 055fb3d: the C++98 sentence now applies only to a test with none of |
Sashiko review — v2✓ No issues found across 1 commit. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
review-core.mdtells the reviewer to ignore files undergcc/testsuite/. That is right for a test's code, which is meant to be odd or invalid, but it also skips the DejaGnu directives, and a test whose directives cannot fail does not protect the fixFor example, a test for PR c++/127708 put its
dg-boguson the call line, while the compiler reports the warning at the cast in the requires clause. The test passes without the fix, and only the generic "test for excess errors" check notices. With the current prompts, a review of that test found no issues. With this change it reported the misplaced directive and named the line it belongs onThis adds
maintainers/testsuite.mdfor every DejaGnu testsuite,gcc/testsuite/and each runtime library'stestsuite/: directive placement and line offsets,c-c++-commontargets, type-size selectors, language levels indg-do, the PR comment and the ChangeLog block in the commit message.review-core.mdstill says to ignore the test's code, and now asks to check its directives, target selectors and PR comment against those notesThat one test is the only case I have checked so far, so the severity it gets (Low in that review) may need tuning once it sees more series
Testing:
make check-prpasses sign-off, fmt and clippy.cargo testhas 9 failures inreviewerandagy_clithat fail on main toosashiko review --project sashiko --agentwith Opus: no open findings